<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
		<bottom-nav  :list='bottomNavList' @on-click='changeNav'></bottom-nav>
	</view>
</template>

<script>
	import bottomNav from '@/common/mixins/bottom-nav.js'
	export default {
		mixins:[bottomNav],
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {
			this.initUserInfo()
			
		},
		
		methods: {
			initUserInfo(){
				try {
					const value = uni.getStorageSync('chat_user_info');
					if (value.id) {
						let {id,nickname,figureurl}=value
						this.$store.commit('setChatUserInfo',{id,nickname,figureurl})
					}
				} catch (e) {}
			}
		}
	}
</script>

<style>
	.page{
	    /*距离顶部范围应该在118-122范围内*/
	    padding-bottom: 118upx;
	}
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200upx;
		width: 200upx;
		margin-top: 200upx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50upx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36upx;
		color: #8f8f94;
	}
</style>
